package com.weixing.mall.provider.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.weixing.mall.provider.model.domain.News;
import com.weixing.mall.provider.model.dto.cms.NewsDto;
import com.weixing.mall.provider.model.enums.cms.NewsTypeEnum;
import com.weixing.mall.provider.model.query.NewsQuery;
import com.weixing.mall.provider.model.vo.cms.NewsEditVo;
import com.weixing.mall.provider.model.vo.cms.NewsFrontVo;
import com.weixing.mall.provider.model.vo.cms.NewsVo;

/**
 * <p>
 * CMS模块-公告资讯表 服务类
 * </p>
 *
 * @author Small
 * @since 2019-11-18
 */
public interface INewsService extends IService<News> {

    public void insert(NewsDto newsDto);

    IPage<NewsVo> selectOfpage(Page page, NewsQuery newsQuery);

    void save(NewsDto newsDto,Long uid);

    NewsEditVo selectNewsEditVoById(long id);

    IPage<NewsFrontVo> selectNewsFrontVoList(Page page, NewsTypeEnum type);
}
